package demo1;
import demo2.demoprotected;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-01
 * Time: 13:16
 */

class Father {
    public int a = 1;
    public int b = 2;

    public void TestA() {
        System.out.println("Father::TestA");
    }
}

class Son extends Father {
    public int c = 3;
    public int a = 10;

    public void TestA() {
        System.out.println("Son::TestA");
    }

    public void TestB() {
        System.out.println("Son::TestB");
    }

    public void TestC() {
        this.TestA();
        super.TestA();
        TestB();
    }


}

public class Test2 extends demoprotected {

}
